<?php
declare (strict_types = 1);

namespace app\admin\model;

use app\article\model\City;
use think\Model;
use think\model\concern\SoftDelete;
/**
 * @mixin \think\Model
 */
class Admin extends Model
{
    use SoftDelete;
    protected $name = 'admian';
    public function province()
    {
        return $this->belongsTo(City::class, 'province_id','id');
    }
    public function city()
    {
        return $this->belongsTo(City::class, 'city_id','id');
    }
    public function area()
    {
        return $this->belongsTo(City::class, 'area_id','id');
    }
}
